<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var o=new Object();
			o.name="芍药";
			o.area="广西，云南";
			o.uses="观赏和药用";
			o.getInfor=function(){return "这种花叫"+this.name+",分布于"+this.area+",用途是"+this.uses;};
			o.showName=function(){alert(this.getInfor())};
			o.showName();
			o.uses="吃了可以长生不老";
			o.showName();
			
			var f2={name:"牡丹",from:"波斯",area:"长江以北",uses:"观赏和绿化",
				showInfo:function(){alert(this.name+","+this.from+","+this.uses);}
			};//Map
			f2.showInfo();
		</script>
	</head>
	<body>
	</body>
</html>
